package org.example.elm.controller;

import org.example.elm.model.Cart;
import org.example.elm.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cart")
public class CartController {
    @Autowired
    private CartService cartService;
    @RequestMapping("/list")
    public Cart[] listCart (int userId,int businessId){
        return null;
    }

    @RequestMapping("/save")
    public int saveCart (int userId,int businessId,int foodId){
        return 0;
    }

    @RequestMapping("/update")
    public int updateCart (int userId,int businessId,int foodId,int quantity){
        return 0;
    }

    @RequestMapping("/remove")
    public int removeCart (int userId,int businessId,int foodId){
        return 0;
    }

}
